<template>
    <div v-for="item in list" :key="item.id">
    id是{{ item.id }}--元素的内容是{{ item.message }}
    </div>
</template>
<script setup>
import { reactive } from 'vue'
const list =reactive([
    {id:1,message:6},
    {id:2,message:7},
    {id:3,message:8},
    {id:4,message:9}
])
</script>